Skip to content

fix: resolve @next/swc version mismatch by updating next to 15.5.12#276

Merged
eshurakov merged 3 commits intomainfrom
fix/next-swc-version-mismatch
Feb 18, 2026
Merged

fix: resolve @next/swc version mismatch by updating next to 15.5.12#276
eshurakov merged 3 commits intomainfrom
fix/next-swc-version-mismatch

Conversation

@kiloconnect
Copy link
Contributor

@kiloconnect kiloconnect bot commented Feb 17, 2026

Problem

next@15.5.11 was published with @next/swc-*@15.5.7 as its optional dependencies, causing the warning:

@next/swc version 15.5.7 detected while Next.js is on 15.5.11

This is a packaging issue in next@15.5.11 itself — the swc packages were not bumped to match.

Fix

  • Updated next from ^15.5.10 to ^15.5.12 in both dependencies and pnpm.overrides
    • next@15.5.12 correctly references @next/swc-*@15.5.12
  • Aligned all Next.js-related packages to ^15.5.12:
    • @next/mdx
    • @next/third-parties
    • @next/eslint-plugin-next
    • eslint-config-next
  • Regenerated pnpm-lock.yaml

Verification

All @next/swc-* packages now resolve to 15.5.12, matching the installed next version. All Next.js ecosystem packages are aligned.


Built for Evgeny Shurakov by Kilo for Slack

@kiloconnect
Copy link
Contributor Author

kiloconnect bot commented Feb 17, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

This PR bumps Next.js and all related @next/* packages from ^15.5.10 to ^15.5.12, including the lockfile. All @next/swc-* platform binaries are correctly resolved to 15.5.12 in the lockfile. The @next/bundle-analyzer remains at ^16.0.3 which is expected as it follows a different versioning scheme.

Files Reviewed (2 files)
  • package.json - version bumps for next, @next/mdx, @next/third-parties, @next/eslint-plugin-next, eslint-config-next, and the next override
  • pnpm-lock.yaml - lockfile updates reflecting the version bumps

kiloconnect bot added a commit that referenced this pull request Feb 17, 2026
Reverts the minimum-release-age-exclude addition for @next/* that was
not part of the original fix request. Keeps only the Next.js version
bump to resolve the @next/swc mismatch.
@eshurakov eshurakov self-assigned this Feb 17, 2026
next@15.5.11 was published with @next/swc-*@15.5.7 as optional deps,
causing a version mismatch warning. Updating to next@15.5.12 which
correctly references @next/swc-*@15.5.12.

Also added @next/* to minimum-release-age-exclude in .npmrc to prevent
pnpm from blocking resolution of newer @next packages.
Reverts the minimum-release-age-exclude addition for @next/* that was
not part of the original fix request. Keeps only the Next.js version
bump to resolve the @next/swc mismatch.
Bump @next/mdx, @next/third-parties, @next/eslint-plugin-next, and
eslint-config-next from ^15.5.10 to ^15.5.12 to match the next version.
@eshurakov eshurakov force-pushed the fix/next-swc-version-mismatch branch from 0c0c168 to 8690c91 Compare February 18, 2026 08:40
@eshurakov eshurakov merged commit 1316fe7 into main Feb 18, 2026
12 checks passed
@eshurakov eshurakov deleted the fix/next-swc-version-mismatch branch February 18, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments